<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>dir=auto and white-space</title>
    </head>
    <body>
        <p dir="rtl">الف</p>
        <p dir="rtl">الف</p>
        <p dir="rtl">الف</p>
        <p dir="rtl">الف</p>
        <p dir="rtl">الف</p>
        <p dir="rtl">الف</p>
        <p>
           All text above should be right-aligned. 
        </p>
    </body>
</html>